<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>编辑用户</title>
  </head>
  <body>
	<div class="pageContent">
		<form method="post" action="<%=path %>/favourableType/saveFavourableType.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<div class="pageFormContent" layoutH="56">
				<input name="favourableTypeVO.id" type="hidden" value="<s:property value="favourableTypeVO.id" />" />
				<p>
					<label>优惠券类别名称：</label>
					<input name="favourableTypeVO.favourableType" value="<s:property value="favourableTypeVO.favourableType" />" class="required" type="text" size="30" alt="请输入优惠券类别名称"/>
				</p>
				<p>
					<label>所属商家：</label>
					<input id="customerId" name="favourableTypeVO.customerId" value="${SESSION_USER.customer==null?'':(SESSION_USER.customer.id)}" type="hidden" size="30"/>
					<input name="favourableTypeVO.customer.id" value="${SESSION_USER.customer==null?'':(SESSION_USER.customer.id)}" type="hidden">
					<input id="customerName" name="favourableTypeVO.customerName" value="${favourableTypeVO.customer.name}" readonly>
					<c:if test="${SESSION_USER.customer==null}">
						<a class="btnLook" href="<%=path %>/customer/listCustomer.action?searchType=active" lookupGroup="favourableTypeVO">选择</a>
					</c:if>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
  </body>
</html>